package com.soft.collateral.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@ApiModel("出库审核表")
@TableName("withdraw_approval")
@NoArgsConstructor
@AllArgsConstructor
public class WithdrawApproval {
    @TableId(value = "approval_id", type = IdType.AUTO)
    @ApiModelProperty("审核ID")
    private Integer approvalId;

    @TableField("apply_id")
    @ApiModelProperty("申请ID")
    private Integer applyId;

    @TableField("approver")
    @ApiModelProperty("审核人")
    private String approver;

    @TableField(value = "approval_time", fill = FieldFill.INSERT)
    @ApiModelProperty("审核时间")
    private LocalDateTime approvalTime;

    @TableField("approval_result")
    @ApiModelProperty("审核结果(1:通过,2:拒绝)")
    private Integer approvalResult;

    @TableField("approval_comment")
    @ApiModelProperty("审核描述")
    private String approvalComment;
}